package org.itboys.mobile.service.mysql.web.wallet;

import org.itboys.mobile.entity.mysql.wallet.CooWalletRecord;
import org.itboys.mongodb.service.BaseMySqlService;
import org.itboys.param.PageResult;
import org.itboys.param.ParamUtil;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 作者：zzq
 * 时间：2018/2/1
 * 描述：
 */
@Service
public class CooWalletRecordService extends BaseMySqlService<CooWalletRecord>{

    public PageResult<CooWalletRecord> selectRecord(HttpServletRequest request,Long memberId){
        Map<String,Object> param= ParamUtil.packageMysqlPageParam(request);
        param.put("memberId",memberId);
        return new PageResult<CooWalletRecord>(super.select(param),super.count(param));

    }
}
